<template>
  <!--单次渲染绑定-->
  <span v-once>我都身份证号码是：{{ state.idCard }}</span>
  <!--单击修改事件-->
  <button @click="change">单击修改</button>
</template>
<script>
  import { reactive } from 'vue'
  export default {
    setup(){
      const state =  reactive ({idCard: '330327199308021723'})
      //修改函数
      const change = () => {
        state.idCard = 'xxx'
      }
      return {state, change}
    }

  }
</script>